#include "GroundStation.h"
#include <iostream>

GroundStation::GroundStation(std::string id, std::string loc, double cap)
    : m_location(std::move(loc)), m_capability(cap) {
    m_id = std::move(id);
}

std::string GroundStation::type() const { return "GroundStation"; }

void GroundStation::report() const {
    std::cout << "[GroundStation] ID=" << m_id
        << "  Location=" << m_location
        << "  Capability=" << m_capability << "t\n";
}

void GroundStation::save(std::ostream& os) const {
    os << type() << '|' << m_id << '|' << m_location << '|' << m_capability << '\n';
}